package com.ruipengkj.view.orderView.dish.cooking;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-8-1
 * Time: 下午2:01
 * To change this template use File | Settings | File Templates.
 */
public class CommodityExeAttrMgr {
    private static CommodityExeAttrMgr instance = null;
    private Map<String , CommodityExeAttrs> CommodityAttrs;

    private CommodityExeAttrMgr() {
        CommodityAttrs = new HashMap();
    }

    public static CommodityExeAttrMgr getInstance() {
        if(instance == null) {
            synchronized(CommodityExeAttrMgr.class){
                if(instance == null){
                    instance = new CommodityExeAttrMgr();
                }
            }
        }
        return instance;
    }

    public void addCommodityExeAttrs(String _commodityID, CommodityExeAttrs _attrs)
    {
        CommodityAttrs.put(_commodityID, _attrs);
    }

    public CommodityExeAttrs getCommodityExeAttrs(String _commodityID)
    {
        return CommodityAttrs.get(_commodityID);
    }
}
